<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let person1 = {
      name: '小红',
      age: 18,
      gender: 'woman'
    }

    for (let key in person1) {
      // console.log(key)
      console.log(person1[key])
    }


  </script>
</body>

</html>